package ooad.gof.observer;


public class Client {
	public static void main(String[] args) {
		ConcreteSubject cs = new ConcreteSubject("str1");	
		AbstractObserver observer1 = new ConcreteObserver("观察者1");
		AbstractObserver observer2 = new ConcreteObserver("观察者2");
		cs.attach(observer1);
		cs.attach(observer2);
		cs.setArg("str2");
	}
}
